package com.platform.service.impl;

import com.platform.entity.GoodsCategoryEntity;
import com.platform.dao.GoodsCategoryDao;
import com.platform.service.GoodsCategoryService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("goodCategoryService")
public class GoodsCategoryServiceImpl implements GoodsCategoryService{

    @Autowired
    private GoodsCategoryDao goodsCategoryDao;

    @Override
    public List<Integer> queryObject(Integer goodsId) { return goodsCategoryDao.queryObject(goodsId); }

    @Override
    public int save(GoodsCategoryEntity goodsCategoryEntity) { return goodsCategoryDao.save(goodsCategoryEntity); }

    @Override
    public int update(GoodsCategoryEntity goodsCategoryEntity) { return goodsCategoryDao.update(goodsCategoryEntity); }

    @Override
    public int deleteByGoodsId(Integer goodsId) { return goodsCategoryDao.deleteByGoodsId(goodsId); }
}
